package de.mhus.lib.mandala.attributes;

import de.mhus.lib.mandala.Response;
import de.mhus.lib.mandala.UiUtil;

public class EncapsulatedBooleanAttribute extends BooleanAttribute {

	private Object[] list;

	public EncapsulatedBooleanAttribute(Object ... list) {
		this.list = list;
	}

	public void renderBooleanExpression(Response out) {
		renderBooleanFunction(out);
	}

	public void renderBooleanFunction(Response out) {
		UiUtil.renderAsFunctions(list, getParent(), out);
	}
	
	public boolean needFunctionImplementation() {
		return false;
	}

}
